package com.atguigu.admin.mapper;

import com.atguigu.admin.bean.City;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 杨林
 * @create 2023-09-02 10:13 星期六
 * description:
 */
@Mapper
public interface CityDao {

    /**
     * 注解方式实现
     * @param id
     * @return
     */
    @Select("select * from city where id = #{id}")
    City getCity(Integer id);
    
}
